// vite.config.js
import { defineConfig } from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/vite/dist/node/index.js";
import AutoImport from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/unplugin-vue-components/dist/resolvers.js";
import { createSvgIconsPlugin } from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import { NaiveUiResolver } from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/unplugin-vue-components/dist/resolvers.js";
import vue from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/lishu/Desktop/voiceacg.com/WebAdmin/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import path from "path";
var __vite_injected_original_dirname = "C:\\Users\\lishu\\Desktop\\voiceacg.com\\WebAdmin";
var pathSrc = path.resolve(__vite_injected_original_dirname, "src");
var vite_config_default = defineConfig({
  server: {
    host: "127.0.0.1",
    port: 4e3,
    open: true,
    proxy: {
      "/api": {
        target: "http://127.0.0.1/",
        // 修改为你的后端 API 地址
        changeOrigin: true,
        rewrite: (path2) => path2.replace(/^\/api/, "")
        // 去掉请求路径中的 '/api' 前缀
      }
    }
  },
  plugins: [
    vue(),
    vueJsx(),
    // 自动导入element plus和vue
    AutoImport({
      imports: ["vue", "@vueuse/core", "vue-router", {
        "naive-ui": [
          "useDialog",
          "useMessage",
          "useNotification",
          "useLoadingBar",
          "NIcon"
        ]
      }],
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver(), NaiveUiResolver()]
    }),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
      symbolId: "icon-[dir]-[name]",
      // 自定义插入的位置
      inject: "body-last",
      customDomId: "__svg__icons__dom__"
    })
  ],
  resolve: {
    alias: {
      "@": pathSrc
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxsaXNodVxcXFxEZXNrdG9wXFxcXHZvaWNlYWNnLmNvbVxcXFxXZWJBZG1pblwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcbGlzaHVcXFxcRGVza3RvcFxcXFx2b2ljZWFjZy5jb21cXFxcV2ViQWRtaW5cXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzL2xpc2h1L0Rlc2t0b3Avdm9pY2VhY2cuY29tL1dlYkFkbWluL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuXHJcbi8vIFx1ODFFQVx1NTJBOFx1NUJGQ1x1NTE2NVxyXG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tICd1bnBsdWdpbi1hdXRvLWltcG9ydC92aXRlJ1xyXG5pbXBvcnQgQ29tcG9uZW50cyBmcm9tICd1bnBsdWdpbi12dWUtY29tcG9uZW50cy92aXRlJ1xyXG5cclxuLy8gRWxlbWVudCBwbHVzIFx1NTQ4QyBTVkdcclxuaW1wb3J0IHsgRWxlbWVudFBsdXNSZXNvbHZlciB9IGZyb20gJ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